<?php
/**
 * Organization profile summary
 *
 * Icon and profile fields
 *
 * @uses $vars['entity'], $vars['section']
 */
$org = $vars['entity'];
$baseUrl = $CONFIG->url."organizations/edit/".$org->guid;

//Tabs Sections
$tabOptions = array();

$tabElement1 = array();
$tabElement1['title'] = 'Edita information basica';
$tabElement1['url'] = $baseUrl;
$tabElement1['id'] = 'general';
$tabElement1['selected'] = $vars['section'] ? false : true;

$tabElement2 = array();
$tabElement2['title'] = 'Administradores';
$tabElement2['url'] = $baseUrl.'/admins/';
$tabElement2['id'] = 'estadisticas';
$tabElement2['selected'] = $vars['section'] == 'admins' ? true : false;

$tabOptions[] = $tabElement1;
$tabOptions[] = $tabElement2;

echo elgg_view('navigation/tabs',array("tabs" => $tabOptions));
?>


<script type="text/javascript">
	//elgg.org.loadAjaxTabs();
</script>